#include "food.h"

Food::Food()
{
	xy = new Point;
	xy->getX() = rand() % 80 * 10;
	xy->getY() = rand() % 80 * 10;
}
void Food::drawFood()
{
	setfillcolor(RGB(rand() % 256,rand() % 255, rand() % 256));
	setlinecolor(BLACK);
	fillrectangle(xy->getX(), xy->getY(), xy->getX() + 10, xy->getY() + 10);
}
Point* Food::getXY()
{
	return xy;
}
